gdkwindow-wayland: Bail out early if we get a frame callback when destroying our...
authorJasper St. Pierre <jstpierre@mecheye.net>
Fri, 31 Jan 2014 21:24:19 +0000 (16:24 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Fri, 31 Jan 2014 21:25:27 +0000 (16:25 -0500)
commit98d1b5464d7d5a8db6bb02d4544afe7960dfa7fe
tree1362213b01b0c68d19b74c9bc1f8f6b66249bdb0
parentfa4bd8b0428ed8f3efc55d4ab61ac404d8d35564
gdkwindow-wayland: Bail out early if we get a frame callback when destroying our window

This prevents warnings like

(gtk3-demo:14948): Gdk-CRITICAL **: _gdk_frame_clock_thaw: assertion 'GDK_IS_FRAME_CLOCK (clock)' failed

(gtk3-demo:14948): Gdk-CRITICAL **: gdk_frame_clock_get_timings: assertion 'GDK_IS_FRAME_CLOCK (frame_clock)' failed

We need to do this, as the compositor might have already sent us a frame
event, in-flight, at the same time we destroy our window. In this case, we'll
receive the then-in-flight "done" event, and then warn as we try to look
up the frame clock on a destroyed window.
gdk/wayland/gdkwindow-wayland.c